package com.bdqn.newdream.Impl;

import com.bdqn.newdream.javabean.DreamingUser;
import com.bdqn.newdream.pojo.Dreamuser;
import com.bdqn.newdream.pojo.DreamuserExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;



public interface DreamuserMapper {
    int countByExample(DreamuserExample example);

    int deleteByExample(DreamuserExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Dreamuser record);

    int insertSelective(Dreamuser record);

    List<Dreamuser> selectByExample(DreamuserExample example);

    Dreamuser selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Dreamuser record, @Param("example") DreamuserExample example);

    int updateByExample(@Param("record") Dreamuser record, @Param("example") DreamuserExample example);

    int updateByPrimaryKeySelective(Dreamuser record);

    int updateByPrimaryKey(Dreamuser record);
    /*
     * 查询用户
     */
    Dreamuser loginuser(String username,String pwd);
    /*
     * 查询用户和用户信息
     */
    DreamingUser gologin(String username,String pwd);
    
    Dreamuser sendkey(String username);
    
    void updatekey(String key,String username);
    
    Integer updatepass(String pass,String uesrname,String namekey);
    
    Integer selectemail(String email);
    
    Integer newdream(Dreamuser record);
   
    Integer selectusername(String username);
    
    Integer activate(String key);
    
    DreamingUser gomessage(Integer id);
}